package edu.fdzc.learn.exception;


import edu.fdzc.learn.result.ResponseEnum;

/**
 * 考试系统自定义异常
 */
public class ExamException extends RuntimeException {
    private final ResponseEnum responseEnum;

    public ExamException(ResponseEnum responseEnum) {
        super(responseEnum.getMsg());
        this.responseEnum = responseEnum;
    }

    public ResponseEnum getResponseEnum() {
        return responseEnum;
    }
}